package org.pzy.spring.aop;

import java.lang.reflect.Proxy;

/**
 * @Author: DRevelation
 * @Date: 2022/1/20 14:44
 */
public class SimpleAOP {

    public static Object getProxy(Object bean, Advice advice) {
        return Proxy.newProxyInstance(SimpleAOP.class.getClassLoader(), bean.getClass().getInterfaces(), advice);
    }

}
